package org.jeecg.modules.wmhb.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.jeecg.modules.wmhb.entity.WmProductDebug;
import org.jeecg.modules.wmhb.mapper.WmProductDebugMapper;
import org.jeecg.modules.wmhb.service.IWmProductDebugService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 产品调试
 * @Author: jeecg-boot
 * @Date:   2024-10-21
 * @Version: V1.0
 */
@Service
public class WmProductDebugServiceImpl extends ServiceImpl<WmProductDebugMapper, WmProductDebug> implements IWmProductDebugService {
    /**
     * 通过任务ID查询出库记录
     * @param wmTaskId
     */
    public List<WmProductDebug> queryListByWmTaskId(String wmTaskId){
        LambdaQueryWrapper<WmProductDebug> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(WmProductDebug::getWmTaskId, wmTaskId);
        List<WmProductDebug> wmProductDebugList = list(queryWrapper);
        return wmProductDebugList;
    };
}
